package org.cuit.echo.seon;

import org.cuit.echo.seon.observe.PhoneDisplay;
import org.cuit.echo.seon.observe.WindowDisplay;
import org.cuit.echo.seon.subject.WeatherStation;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-10
 */
public class Client {
    public static void main(String[] args) {
        WeatherStation weatherStation = new WeatherStation();

        PhoneDisplay phoneDisplay = new PhoneDisplay();
        WindowDisplay windowDisplay = new WindowDisplay();

        weatherStation.registerObserver(phoneDisplay);
        weatherStation.registerObserver(windowDisplay);

        weatherStation.setWeatherData(25.5f, 65.0f);
        weatherStation.setWeatherData(30.0f, 70.0f);
    }
}
